﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;

namespace EMath.Objects {
	/// <summary>
	/// Interaction logic for PopUp.xaml
	/// </summary>
	public partial class PopUp : Window {
		public PopUp( ) {
			InitializeComponent( );
			ImageSource x = new BitmapImage(new Uri(@"pack://application:,,,/Resources/ImagesG/GI_BG.jpg", UriKind.Absolute));
			this.Background = new ImageBrush(x);
		}

		public void SetImage(ImageSource image) {
			this.PB_Picture.Source = image;
		}

		private void E_MouseLeave(object sender, MouseEventArgs e) {
			this.Close( );
		}
		private void E_MouseDown(object sender, MouseButtonEventArgs e) {
			this.Close( );
		}
	}
}
